package com.transfiguro.datamodel.csmodels;

import com.transfiguro.datamodel.GenericStatement;
import com.transfiguro.datamodel.Statement;

public class CSBlockStatement extends GenericStatement{
    private String blockStart;

    public String getBlockStart() {
        return blockStart;
    }

    public void setBlockStart(final String blockStart) {
        this.blockStart = blockStart;
    }
    
    @Override
    public String toString() {
        StringBuilder result = new StringBuilder();
        result.append(blockStart).append("{ \n");
        if(statements!=null) {
            for(final Statement statement: statements) {
                result.append(statement.toString());
            }
        } else {
            result.append("//This block has no statements");
        }
        result.append("} \n");
        return result.toString();
    }
}
